package javaweb.dao.impl;
import javaweb.dao.OrderDao;
import javaweb.pojo.OrderItem;
import javaweb.pojo.Order;
/**
 * @author shkstart
 * @creat -08-08 23:09
 */
public class OrderDaoImpl extends BaseDao implements OrderDao {
    @Override
    public int saveOrderItem(Order order) {
        String sql="insert into t_order(`order_id`,`create_time`,`price`,`status`,`user_id`)" +
                "values(?,?,?,?,?)";
        return upDate(sql,order.getOrderId(),order.getCreateTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}
